package com.qumitech.visualnovel.datasource.app;

import java.util.List;
import com.qumitech.visualnovel.model.dao.app.UserGamingWishBottleStatisticsDO;
import org.apache.ibatis.annotations.Param;

public interface UserGamingWishBottleStatisticsDOMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserGamingWishBottleStatisticsDO record);

    int insertSelective(UserGamingWishBottleStatisticsDO record);

    UserGamingWishBottleStatisticsDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserGamingWishBottleStatisticsDO record);

    int updateByPrimaryKey(UserGamingWishBottleStatisticsDO record);

    int getStatisticListCount(@Param("tableName") String tableName,
                              @Param("uid") String uid,
                              @Param("minGamingDiamonds") String minGamingDiamonds,
                              @Param("maxGamingDiamonds") String maxGamingDiamonds,
                              @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<UserGamingWishBottleStatisticsDO> getStatisticList(@Param("tableName") String tableName,
                                                            @Param("uid") String uid,
                                                            @Param("minGamingDiamonds") String minGamingDiamonds,
                                                            @Param("maxGamingDiamonds") String maxGamingDiamonds,
                                                            @Param("startTime") String startTime, @Param("endTime") String endTime,
                                                            @Param("orderType") String orderType, @Param("orderBy") String orderBy,
                                                            @Param("offset") int offset, @Param("limit") int limit);
}